#pragma once

namespace cvLib
{
	class MeanShiftTracker
	{
	public:
#pragma region Member Variables

		CvCapture *capture;
		IplImage *frame;
		int fHeight;
		int fWidth;
		// --- status variables ---//
		bool onProcess;
		bool tractObject;
		bool drawRect;
		// --- count variables ---//
		int rectCount;
		static const int maxNumberRect = 4;
		CvRect tmpSelection;
#pragma endregion

		MeanShiftTracker(){
			rectCount = 0;
			onProcess = false;
			tractObject = false;
			drawRect = false;
			tmpSelection = cvRect(0,0,0,0);
		}
		~MeanShiftTracker()
		{}
		void setCapture(CvCapture *tmpCap);
		void displayFrames();
		void setProperties();
		void handleMouseEvents(int event, int x, int y, int flags, void* param);
		void drawRectangles();
	};	
	
}